﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuantitativeManage.aspx.cs"
    Inherits="Indicators_QuantitativeManage" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>综合查询</title>
    <link rel="stylesheet" href="../css/css.css" type="text/css" />
    <link rel="stylesheet" href="../css/DropDownList.css" type="text/css" />
    <link href="../css/tab.css" type="text/css" rel="stylesheet" />

    <script src="../js/Common.js" type="text/javascript"></script>

    <script src="../JS/calendar.js" type="text/javascript"></script>

    <script src="../JS/DropDownList.js" type="text/javascript"></script>

    <script src="../JS/TreeView.js" type="text/javascript"></script>

    <script language="Javascript" type="text/javascript" src="../FusionCharts/FusionCharts.js"></script>

    <script language="javascript" type="text/javascript">
        function Save(obj) {
            if (obj == "1")
                $("btnQuery").click();
            else if (obj == "2")
                $("btnReport").click();
            else
                $("btnExport").click();
        }
    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form method="post" enctype="multipart/form-data" id="form1" runat="server">
    <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td valign="middle" style="height: 25; width: 100%;">
                <img id="imgIndicator" src="../images/Indicator.jpg" style="width: 21; height: 16;"
                    alt="当前位置" />当前位置：<asp:Label ID="Indicator" runat="server"></asp:Label>
            </td>
        </tr>
        <tr style="height: 1; background-color: #dddddd;">
            <td>
            </td>
        </tr>
    </table>
    <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr style="height: 5;">
            <td>
                <div align="left" class="greynavbar" style="background-image: url('../images/hit_bg.gif');">
                    <ul id="foldertab">
                        <li><a class="current" href="QuantitativeManage.aspx">统计查询（财务口径）</a></li>
                        <%if (String.IsNullOrEmpty(sAreaId))
                          { %>
                        <li><a href="QueryManage.aspx">综合查询分析</a></li>
                        <%} %>
                        <li><a href="MonthManage.aspx">月度表查询（统计口径）</a></li>
                    </ul>
                </div>
            </td>
        </tr>
    </table>
    <table width="98%" border="0" cellpadding="0" class="table" cellspacing="0" align="center">
        <tr>
            <td align="center" valign="top">
                <!--搜索开始-->
                <table width="98%" border="0" align="center" cellpadding="3" cellspacing="3">
                    <tr>
                        <td align="right">
                            查询区域：
                        </td>
                        <td style="width: 35%;" align="left">
                            <div id="sltArea" runat="server" style="float: left;" onmouseover="ShowMList('divCheckBoxList','divCheckBoxListClose');"
                                onmouseout="HideMList('divCheckBoxList','divCheckBoxListClose');">
                                <table>
                                    <tr>
                                        <td align="right" class="DropDownLook">
                                            <input id="txtArea" type="text" readonly="readonly" onclick="ShowMList('divCheckBoxList','divCheckBoxListClose')"
                                                style="width: 229px;" runat="server" />
                                        </td>
                                        <td align="left" class="DropDownLook">
                                            <img alt="" id="imgShowHide" runat="server" src="../Images/drop.gif" onclick="ShowMList('divCheckBoxList','divCheckBoxListClose')"
                                                align="left" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="DropDownLook">
                                            <div>
                                                <div runat="server" id="divCheckBoxListClose" class="DivClose">
                                                    <label runat="server" class="LabelClose" id="lblClose">
                                                        <asp:CheckBox ID="chkArea" runat="server" />全选&nbsp;&nbsp;
                                                    </label>
                                                </div>
                                                <div runat="server" id="divCheckBoxList" class="DivCheckBoxList">
                                                    <asp:CheckBoxList ID="lstArea" runat="server" Width="250px" CssClass="CheckBoxList">
                                                    </asp:CheckBoxList>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td align="right">
                            查询类型：
                        </td>
                        <td style="width: 40%" align="left">
                            <asp:RadioButtonList ID="rblType" runat="server" RepeatDirection="Horizontal" AutoPostBack="true"
                                OnSelectedIndexChanged="rblType_SelectedIndexChanged">
                                <%--                                <asp:ListItem Value="0">数据表</asp:ListItem>
                                <asp:ListItem Value="1">公式</asp:ListItem>
                                <asp:ListItem Value="2">考核指标</asp:ListItem>--%>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            数据表：
                        </td>
                        <td style="width: 35%;" align="left">
                            <asp:DropDownList ID="ddlTable" Width="150px" runat="server" AutoPostBack="True"
                                OnSelectedIndexChanged="ddlTable_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            字段：
                        </td>
                        <td style="width: 40%" align="left">
                            <div id="divField" runat="server" style="float: left;" onmouseover="ShowMList('divFieldList','divFieldListClose');"
                                onmouseout="HideMList('divFieldList','divFieldListClose');">
                                <table>
                                    <tr>
                                        <td align="right" class="DropDownLook">
                                            <input id="txtField" type="text" readonly="readonly" onclick="ShowMList('divFieldList','divFieldListClose')"
                                                style="width: 229px;" runat="server" />
                                        </td>
                                        <td align="left" class="DropDownLook">
                                            <img alt="" id="imgShowHideField" runat="server" src="../Images/drop.gif" onclick="ShowMList('divFieldList','divFieldListClose')"
                                                align="left" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="DropDownLook">
                                            <div>
                                                <div runat="server" id="divFieldListClose" class="DivClose">
                                                    <label runat="server" class="LabelClose" id="labClose2">
                                                        <asp:CheckBox ID="chkField" runat="server" />全选&nbsp;&nbsp;
                                                    </label>
                                                </div>
                                                <div runat="server" id="divFieldList" class="DivCheckBoxList">
                                                    <asp:CheckBoxList ID="lstField" runat="server" Width="250px" CssClass="CheckBoxList">
                                                    </asp:CheckBoxList>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            日期：
                        </td>
                        <td style="width: 35%;" align="left">
                            <select id="sltStartYear" runat="server" style="width: 60px;">
                                <option value="2008">2008</option>
                                <option value="2009">2009</option>
                                <option value="2010" selected="selected">2010</option>
                                <option value="2011">2011</option>
                                <option value="2012">2012</option>
                                <option value="2013">2013</option>
                                <option value="2014">2014</option>
                                <option value="2015">2015</option>
                            </select>&nbsp;<select id="sltStartMonth" runat="server" style="width: 40px;">
                                <option value="01">01</option>
                                <option value="02">02</option>
                                <option value="03">03</option>
                                <option value="04">04</option>
                                <option value="05">05</option>
                                <option value="06">06</option>
                                <option value="07">07</option>
                                <option value="08">08</option>
                                <option value="09">09</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                            </select>&nbsp;至&nbsp;<select id="sltEndYear" runat="server" style="width: 60px;">
                                <option value="2008">2008</option>
                                <option value="2009">2009</option>
                                <option value="2010" selected="selected">2010</option>
                                <option value="2011">2011</option>
                                <option value="2012">2012</option>
                                <option value="2013">2013</option>
                                <option value="2014">2014</option>
                                <option value="2015">2015</option>
                            </select>&nbsp;<select id="sltEndMonth" runat="server" style="width: 40px;">
                                <option value="01">01</option>
                                <option value="02">02</option>
                                <option value="03">03</option>
                                <option value="04">04</option>
                                <option value="05">05</option>
                                <option value="06">06</option>
                                <option value="07">07</option>
                                <option value="08">08</option>
                                <option value="09">09</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                            </select>
                        </td>
                        <td align="right">
                            查询参数：
                        </td>
                        <td style="width: 40%" align="left">
                            <div runat="server" id="hidDivLastYears" style="float: left">
                                指标比较年份：
                                <select id="sltLastYears" runat="server" style="width: 60px;">
                                    <option value="2008">2008</option>
                                    <option value="2009">2009</option>
                                    <option value="2010" selected="selected">2010</option>
                                    <option value="2011">2011</option>
                                    <option value="2012">2012</option>
                                    <option value="2013">2013</option>
                                    <option value="2014">2014</option>
                                    <option value="2015">2015</option>
                                </select>
                            </div>
                            <div runat="server" id="hidDivConfig" style="float: left">
                                <input id="rdMR" type="radio" value="0" runat="server" checked="true" name="rdList" />默认&nbsp;
                                <input id="rdTB" type="radio" value="1" runat="server" name="rdList" />同比 &nbsp;<input
                                    id="rdHB" name="rdList" value="2" type="radio" runat="server" />环比&nbsp;</div>
                            <input id="chkTotal" type="checkbox" runat="server" />累积量
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            图表样式：
                        </td>
                        <td>
                            <asp:RadioButtonList ID="brlGraphic" runat="server" RepeatDirection="Horizontal"
                                AutoPostBack="true" OnSelectedIndexChanged="brlGraphic_SelectedIndexChanged">
                                <asp:ListItem Value="1" Selected="True">柱状</asp:ListItem>
                                <asp:ListItem Value="2">折线</asp:ListItem>
                                <asp:ListItem Value="3">饼图</asp:ListItem>
                                <asp:ListItem Value="4">双轴图</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td align="right">
                            图标参数
                        </td>
                        <td align="right">
                            <div style="float: left">
                                X轴:<asp:DropDownList ID="DDLx" runat="server">
                                    <asp:ListItem Value="地区">地区</asp:ListItem>
                                    <asp:ListItem Value="年月">年月</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <input id="btnSave" type="button" value="列  表" class="button06" onclick="Save(1)" />
                            <input id="btnRep" type="button" value="图  表" class="button06" onclick="Save(2)" />
                            <input id="btnEx" type="button" value="导 出" class="button06" onclick="Save(3)" />
                            <asp:Button ID="btnQuery" runat="server" Width="0px" Height="0px" CssClass="button06"
                                Text="列  表" OnClick="btnQuery_Click" />&nbsp;<input id="btnReport" type="button"
                                    runat="server" class="button06" value="图  表" style="display: none" onserverclick="btnReport_ServerClick" /><input
                                        id="btnExport" type="button" runat="server" class="button06" value="导  出" style="display: none"
                                        onserverclick="btnExport_ServerClick" />&nbsp;<asp:CheckBox ID="cbShowData" Text="显示数据"
                                            runat="server" Visible="false" AutoPostBack="true" OnCheckedChanged="cbShowData_CheckedChanged" />
                        </td>
                    </tr>
                    <tr id="trDouble" runat="server">
                        <td align="right">
                            主轴：
                        </td>
                        <td>
                            <div id="divDouble" runat="server" style="float: left;" onmouseover="ShowMList('divDoubleList','divDoubleListClose');"
                                onmouseout="HideMList('divDoubleList','divDoubleListClose');">
                                <table>
                                    <tr>
                                        <td align="right" class="DropDownLook">
                                            <input id="txtDouble" type="text" readonly="readonly" onclick="ShowMList('divDoubleList','divDoubleListClose')"
                                                style="width: 229px;" runat="server" />
                                        </td>
                                        <td align="left" class="DropDownLook">
                                            <img alt="" id="img3" runat="server" src="../Images/drop.gif" onclick="ShowMList('divDoubleList','divDoubleListClose')"
                                                align="left" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="DropDownLook">
                                            <div>
                                                <div runat="server" id="divDoubleListClose" class="DivClose">
                                                    <label runat="server" onclick="HideMList('divDoubleList','divDoubleListClose');"
                                                        class="LabelClose" id="Label3">
                                                        关闭
                                                    </label>
                                                </div>
                                                <div runat="server" id="divDoubleList" class="DivCheckBoxList">
                                                    <asp:CheckBoxList ID="lstDouble" runat="server" Width="250px" CssClass="CheckBoxList">
                                                    </asp:CheckBoxList>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <input type="hidden" id="HiddenID" name="HiddenID" runat="server" />
                <asp:GridView ID="GridView1" runat="server" CellPadding="4" OnRowDataBound="GridView1_RowDataBound"
                    BackColor="SteelBlue" BorderColor="DarkSlateGray" BorderStyle="Solid" BorderWidth="0px"
                    CellSpacing="1" Width="100%" AutoGenerateColumns="true" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" OnSorting="GridView1_Sorting" AllowSorting="True">
                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="#F9F9FB" />
                    <RowStyle BackColor="#F9F9FB" ForeColor="#333333" Height="24px" BorderStyle="Dotted" />
                    <AlternatingRowStyle BackColor="#EFEFF8" />
                    <HeaderStyle BackColor="#E3E7F0" Height="25px" />
                </asp:GridView>
                <asp:Literal ID="FCLiteral" runat="server"></asp:Literal>
                <asp:Label ID="Text_Confirm_State" runat="server" Style="text-align: left;" BackColor="#FFFF80"
                    BorderColor="Red" BorderStyle="Dashed" BorderWidth="2px" Width="400px" Visible="false"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:Button ID="btn" runat="server" Width="0px" Height="0px" Text="Button" OnClick="btn_Click" />
    <input id="hidState" type="hidden" runat="server" />
    </form>
</body>
</html>
